-
Notifications
You must be signed in to change notification settings - Fork 306
Ammo Physics (3D Physics Extension) #1974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Wow! It's very cool and useful for people like me) |
Thank you! I've been making steady progress, but it probably won't be ready for a while (which is why this is a draft). |
|
Added partial support compound bodies - all child shape types. |
|
wow |
|
Finally got convex hulls working 🥳 🎉 video.mp4Still have to optimize and bug fix everything and add more features |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@MasterThomas15 Your forces should be fixed in the latest commit, and I added a few new simulation utilities (get gravity/maxsubsteps and step simulation with user-provided parameters) |
This comment was marked as resolved.
This comment was marked as resolved.
|
The previous commit uses the new ESM stuff to do Tradeoff is that it doesn't seem to work in my version of the Desktop editor, which I don't think has been updated yet? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
|
I'm not normally one to do this, but I think it'd be nice if I could have everyone review this PR just because it's so big. |
|
When projects using this extension are packaged, will the packager embed the external dependencies into the packaged project so projects that use the extension can be used offline? |
|
if this is merged, projects using it will work fine offline before then, no currently the packager does not know how to convert all the Scratch.external.* into an inline thing on its own yet |
Wait so you mean when it's merged, the builder will convert it into a data url, but the internet url currently in the extension can't be packaged? |
|
oops wrong button |
|
Also validate is yelling at me |
|
it's telling you to use a specific commit and not just whatever is on the |
|
I have a few trivial inquiries for any who may be able to help:
The more complex questions
|
|
About 3: From the point of view of a potential user of your extension (still need to test if it is viable for my projects but it looks really nice already), I would definitely like to have the flexibility of being able to turn off automatic resetting, I'm a big fan of having options for everything and I'm probably not the only one |
|
Noted |
|
I was also previously considering putting an "Advanced Options" button at the bottom of the pallet that would reveal additional blocks (such as visual debug rendering, but this has since been scrapped due to scope). I could still do this for a few smaller options |
|
Also, for me (on the newest version, git cloned desktop with NodeJS and unrestricted mode), the current version in your repo throws an error when loading: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'evalAndReturn') at 21:39 at 2584:3 |
|
that would mean your vm is outdated |
The latest version of the extension makes use of the relatively new external dependency features. It's working for me on the latest version of Turbowarp desktop from the Mac app store, but if it's not working for you I'd recommend just using the web editor as that's almost always up to date |
Is that actually a possible issue, even if I just cloned everything into a completely new environment about 10 minutes ago? |
Ammo Physics
A physics extension based on the ammo.js physics library, which is a direct port of the world-renowned C++ Bullet Physics SDK.
The goal is to provide feature-complete, advanced, and performant 3D physics in a simple-to-understand manner. This extension aims to be consistent with Box2D and Simple3D.
video.mp4
Task list:
[ ] Constraints (All types)Things I'm considering now or for a later update:
Debug rendering supportSoft BodiesMiscellaneous Notes Mainly for Moderators:
I'm not good at graphic design so if someone wants to make a banner/thumbnail that'd be greatStill have to incorporateScratch.Castwhere necessary, right now I'm just working on functionality thoughPut an emoji (👍, 🚀) if you like this extension